package game.classes;

/**
 * @author Chris
 */
public class NetworkMessage {

    private String msg[];
    private String plainmsg;

    public NetworkMessage(String msg) {
        plainmsg = msg;
    }

    public void decodeMessage() {
        this.msg = plainmsg.split("-");
    }

    public String getArg(int i) {
        return msg[i];
    }

    public String getPlainMessage() {
        return plainmsg;
    }

    public void setPlainMessage(String p) {
        plainmsg = p;
    }
}
